package com.itmuch.cloud.feign;


import com.itmuch.cloud.entity.User;
import com.itmuch.config.Configuration1;

import feign.Param;
import feign.RequestLine;
import feign.hystrix.FallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;

@FeignClient(name = "provider-user", configuration = Configuration1.class/*, fallback = HystrixClientFallback.class*/, fallbackFactory  = HystrixClientFallbackFactory.class)
public interface UserFeignClient {
  @RequestLine("GET /simple/{id}")
  public User findById(@Param("id") Long id);
}

